﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="AddStaff.aspx.cs" Inherits="WebApplication1.AddStaff" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style34
        {
            height: 59px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <table>
   <tr>
   <td></td>
     <td></td>
       <td>
           <asp:Label ID="lblAddStaff" runat="server" Font-Bold="True" Font-Size="Small" 
               ForeColor="Red"></asp:Label>
       </td>
   </tr>
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label1" runat="server" Text="Staff's Father/Husband Name"></asp:Label>
   </td>
   <td>
   <asp:TextBox ID="txtStaffLastName" runat="server" style="margin-left: 6px" 
            Width="193px"></asp:TextBox>
       <asp:RequiredFieldValidator ID="rfvStaffFLastName" runat="server" 
           ControlToValidate="txtStaffLastName" 
           ErrorMessage="Please Enter Staff's Father/Husband Name" 
           ondatabinding="btnStaffrAdd_Click"></asp:RequiredFieldValidator>
   </td>
   </tr>
   
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label9" runat="server" Text="Staff's  Name"></asp:Label>
   </td>
   <td>
   <asp:TextBox ID="txtStaffFirstName" runat="server" style="margin-left: 4px" 
            Width="197px"></asp:TextBox>
       <asp:RequiredFieldValidator ID="frvStaffFirstName" runat="server" 
           ControlToValidate="txtStaffFirstName" 
           ErrorMessage="Please Enter Staff's Name"></asp:RequiredFieldValidator>
   </td>
   </tr>
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label10" runat="server" Text="Date Of Birth"></asp:Label>
   </td>
   <td>
       <asp:TextBox ID="txtStaffDOB" runat="server" style="margin-left: 5px"></asp:TextBox>
       <asp:CompareValidator ID="cvStaffDOB" runat="server" 
        ControlToValidate="txtStaffDOB" 
        ErrorMessage="Entered date is not in correct format, it should be mm/dd/yyyy format" 
        ondatabinding="btnStaffrAdd_Click" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
   </td>
   </tr>
   <tr>
   <td>
   </td>
   <td>
         <asp:Label ID="Label11" runat="server" Text="Telephone Number"></asp:Label>
   </td>
   <td>
    <asp:TextBox ID="txtStaffTelephoneNumber" runat="server" 
            style="margin-left: 5px" Width="191px"></asp:TextBox>
       <asp:CompareValidator ID="cvStaffTPNoIsNotInt" runat="server" 
           ControlToValidate="txtStaffTelephoneNumber" 
           ErrorMessage="Telephone number should be integer" 
           ondatabinding="btnStaffrAdd_Click" Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator>
   </td>
   </tr>
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label12" runat="server" Text="Email"></asp:Label>
   </td>
   <td>
   <asp:TextBox ID="txtStaffEmail" runat="server" style="margin-left: 6px" 
            Width="187px"></asp:TextBox>
       <asp:RegularExpressionValidator ID="revStaffEmail" runat="server" 
           ControlToValidate="txtStaffEmail" ErrorMessage="This is not a valid email" 
           ondatabinding="btnStaffrAdd_Click" 
           ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
   </td>
   </tr>
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label13" runat="server" Text="Permanent Address"></asp:Label>
   </td>
   <td>
   <asp:TextBox ID="txtStaffPermAddress" runat="server" Height="51px" 
             style="margin-left: 7px" 
            TextMode="MultiLine" Width="243px"></asp:TextBox>
   </td>
   </tr>
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label14" runat="server" Text="Role"></asp:Label>
   </td>
   <td>
   <asp:DropDownList ID="ddlStaffRole" runat="server" style="margin-left: 7px" 
           Width="238px">
            <asp:ListItem>Assitant Teacher</asp:ListItem>
            <asp:ListItem>Sectional Head</asp:ListItem>
            <asp:ListItem>Vice Principal</asp:ListItem>
            <asp:ListItem>Principal</asp:ListItem>
            <asp:ListItem>Labortary Assistant</asp:ListItem>
            <asp:ListItem>Librariyan</asp:ListItem>
            <asp:ListItem>Other</asp:ListItem>
            <asp:ListItem>Coach</asp:ListItem>
        </asp:DropDownList>
   </td>
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label15" runat="server" Text="Subject Details"></asp:Label>
   </td>
   <td>
   <asp:DropDownList ID="ddlStaffSubject" runat="server" 
            style="margin-left: 6px" Height="16px" Width="237px">
            <asp:ListItem>Mathematics</asp:ListItem>
            <asp:ListItem>Tamil</asp:ListItem>
            <asp:ListItem>Science</asp:ListItem>
            <asp:ListItem>Social Studies</asp:ListItem>
            <asp:ListItem>English</asp:ListItem>
            <asp:ListItem>Hindusium</asp:ListItem>
            <asp:ListItem>Christianity</asp:ListItem>
            <asp:ListItem>Life Style</asp:ListItem>
            <asp:ListItem>Art</asp:ListItem>
            <asp:ListItem>Music</asp:ListItem>
            <asp:ListItem>Dance</asp:ListItem>
            <asp:ListItem>Health Science</asp:ListItem>
            <asp:ListItem>Electornics</asp:ListItem>
            <asp:ListItem>Agriculture</asp:ListItem>
            <asp:ListItem>Physics</asp:ListItem>
            <asp:ListItem>Combined Maths</asp:ListItem>
            <asp:ListItem>Chemistry</asp:ListItem>
            <asp:ListItem>Biology</asp:ListItem>
            <asp:ListItem>Economics</asp:ListItem>
            <asp:ListItem>Accounting</asp:ListItem>
            <asp:ListItem>Logic</asp:ListItem>
            <asp:ListItem>Tamil - Arts</asp:ListItem>
            <asp:ListItem>Hindu Culture</asp:ListItem>
            <asp:ListItem>Geography</asp:ListItem>
            <asp:ListItem>Drama</asp:ListItem>
            <asp:ListItem>Other</asp:ListItem>
        </asp:DropDownList>
   </td>
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label16" runat="server" Text="Degree Details"></asp:Label>
   </td>
   <td>
   <asp:TextBox ID="txtStaffDegree" runat="server" 
            style="margin-left: 5px" Width="235px"></asp:TextBox>
   </td>
   </tr>
   
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label19" runat="server" Text="Teach From "></asp:Label>
   </td>
   <td>
       <asp:TextBox ID="txtStaffTeachFrm" runat="server"></asp:TextBox>
       <asp:Label ID="Label29" runat="server" Font-Bold="True" Font-Size="Small" 
           ForeColor="#3333CC" 
           Text="If you don't know the member's period leave as blank, committee's period will be entered for him "></asp:Label>
   </td>
   </tr>
   <tr>
   <td class="style34">
   </td>
   <td class="style34">
   <asp:Label ID="Label20" runat="server" 
            Text="Teach Up To"></asp:Label>
   </td>
   <td class="style34">
       <asp:TextBox ID="txtStaffTeachTo" runat="server"></asp:TextBox>
       <asp:Label ID="Label30" runat="server" Font-Bold="True" Font-Size="Small" 
           ForeColor="#3333CC" 
           Text="If you don't know the member's period leave as blank, committee's period will be entered for him "></asp:Label>
       <asp:CompareValidator ID="CompareValidator1" runat="server" 
           ErrorMessage="The Teach Up to should be greater than teach from " 
           Font-Bold="True" Font-Size="Small" Operator="GreaterThanEqual" 
           ControlToCompare="txtStaffTeachFrm" ControlToValidate="txtStaffTeachTo" 
           ondatabinding="btnStaffrAdd_Click"></asp:CompareValidator>
   </td>
   </tr>
   <tr>
   <td></td>
    <td>
        <asp:Label ID="Label31" runat="server" Text="Is Current Staff"></asp:Label>
       </td>
     <td>
         <asp:CheckBox ID="chkStaffIsCurrentStaff" runat="server" 
             Text="Is Current Staff" />
       </td>
   </tr>
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label21" 
            runat="server" Text="Description"></asp:Label>
   </td>
   <td>
   <asp:TextBox ID="txtStaffDesc" runat="server" Height="78px" 
            style="margin-left: 10px" TextMode="MultiLine" Width="374px"></asp:TextBox>
   </td>
   </tr>
   <tr>
   <td>
   </td>
   <td>
   <asp:Label ID="Label28" runat="server" Text="Photo"></asp:Label>
   </td>
   <td>
   <asp:FileUpload ID="fuStaffPhoto" runat="server" style="margin-left: 12px" 
            Width="232px" />
   </td>
   
   <tr>
   <td>
   </td>
   <td>
   <asp:Button ID="btnStaffrAdd" runat="server" style="margin-left: 101px" 
            Text="Submit" Width="65px" onclick="btnStaffrAdd_Click" />
   </td>
   <td>
     <asp:Button ID="btnStaffCancel" runat="server" style="margin-left: 98px" 
            Text="Cancel" Width="60px" />
   </td>
   </tr>
  
   </tr>
   </table>
  
    <p>
        &nbsp;</p>
    <p>
        
      
    </p>
</asp:Content>
